package com.xinyu.entity;

public class Userfactory {
	public static User  Userfactory() {
		User user = new User();
	System.out.println("静态工厂创建了实例");
		return user;
		
	}
	
	public User createuser() {
		User user= new User();
		System.out.println("实例工厂创建了");
		return user;
	}
	
	
	

}
